package net.xo68.destiny.core.sched;


import net.xo68.destiny.contract.domain.job.TriggerParameter;
import net.xo68.destiny.core.timingwheel.TimingWheelTaskSequencer;

/**
 * 任务序列映射器实现
 * @author wuxie
 * @version 2020-10-26
 */
public class TaskSequencer implements TimingWheelTaskSequencer<TriggerParameter> {
    @Override
    public String sequence(TriggerParameter triggerParameter) {
        return String.valueOf(triggerParameter.getInstanceId());
    }
}
